#-------------------------------------------------
#
# Project created by QtCreator 2022-03-17T22:22:44
#
#-------------------------------------------------

QT       += core gui \
            network \
            virtualkeyboard \
            sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
QMAKE_CXXFLAGS += -std=c++11
TARGET = SmartFridge
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    api.cpp \
    dish.cpp \
    dishdetail.cpp \
    dishitem.cpp \
    dishrecommend.cpp \
    dishrecommendunit.cpp \
    food.cpp \
    fooditem.cpp \
    foodselect.cpp \
    foodtype.cpp \
    fridge.cpp \
    logindialog.cpp \
        main.cpp \
    mycalendarwidget.cpp \
    mylineedit.cpp \
    mylinenumedit.cpp \
    mylistwidget.cpp \
    option.cpp \
    optionadd.cpp \
    optionedit.cpp \
    optiongroup.cpp \
    optionitem.cpp \
    optionunit.cpp \
    remind.cpp \
    remindadd.cpp \
    remindedit.cpp \
    reminditem.cpp \
    sql.cpp \
    storage.cpp \
    storageadd.cpp \
    storageedit.cpp \
    storageitem.cpp \
    unit.cpp \
    urlimagelabel.cpp \
        widget.cpp \
    Keyboard/KeyButton.cpp \
    Keyboard/Keyboard.cpp \
    Keyboard/NumberKeyboard.cpp

HEADERS += \
    api.h \
    dish.h \
    dishdetail.h \
    dishitem.h \
    dishrecommend.h \
    dishrecommendunit.h \
    food.h \
    fooditem.h \
    foodselect.h \
    foodtype.h \
    fridge.h \
    logindialog.h \
    mycalendarwidget.h \
    mylineedit.h \
    mylinenumedit.h \
    mylistwidget.h \
    option.h \
    optionadd.h \
    optionedit.h \
    optiongroup.h \
    optionitem.h \
    optionunit.h \
    remind.h \
    remindadd.h \
    remindedit.h \
    reminditem.h \
    sql.h \
    storage.h \
    storageadd.h \
    storageedit.h \
    storageitem.h \
    unit.h \
    urlimagelabel.h \
        widget.h \
    json/json-forwards.h \
    json/json.h\
    Keyboard/AbstractKeyboard.h \
    Keyboard/KeyButton.h \
    Keyboard/Keyboard.h \
    Keyboard/NumberKeyboard.h

FORMS += \
    dishdetail.ui \
    dishitem.ui \
    dishrecommendunit.ui \
    fooditem.ui \
    foodselect.ui \
    logindialog.ui \
    mycalendarwidget.ui \
    optionadd.ui \
    optionedit.ui \
    optionitem.ui \
    optionunit.ui \
    remindadd.ui \
    remindedit.ui \
    reminditem.ui \
    storageadd.ui \
    storageedit.ui \
    storageitem.ui \
        widget.ui
RESOURCES += Resources/Image.qrc

# 可启用下列宏
# 启用汉字库
# ENABLED_CHINESE_LIB

# 启用词组汉字库
# ENABLED_CHINESE_PHRASE_LIB

# 启用谷歌汉字库(推荐使用)
# ENABLED_GOOGLE_CHINESE_LIB

# 启用文泉驿字体库
# ENABLED_WQY_FONT
INCLUDEPATH = Keyboard
DEFINES += ENABLED_GOOGLE_CHINESE_LIB

contains(DEFINES, ENABLED_CHINESE_LIB) {
    RESOURCES += Resources/ChineseLib.qrc
}

contains(DEFINES, ENABLED_CHINESE_PHRASE_LIB) {
    RESOURCES += Resources/ChinesePhraseLib.qrc
}

contains(DEFINES, ENABLED_GOOGLE_CHINESE_LIB) {
    RESOURCES += Resources/GoogleChineseLib.qrc
}

contains(DEFINES, ENABLED_WQY_FONT) {
    RESOURCES += Resources/Font.qrc
}
RESOURCES += \
    res.qrc
